package com.huilian.iotbox.client.service;

import com.huilian.iotbox.data.common.ServerResponse;
import com.huilian.iotbox.data.dto.MemberStoreBalanceDto;
import com.huilian.iotbox.data.po.MemberStoreBalance;
import com.huilian.iotbox.data.po.Order;
import com.huilian.iotbox.data.vo.MemberStoreBalanceVo;

import javax.servlet.http.HttpServletRequest;
import java.io.IOException;
import java.security.NoSuchAlgorithmException;
import java.util.List;

public interface MemberStoreBalanceService {

    int insert(MemberStoreBalanceVo memberStoreBalanceVo);

    MemberStoreBalanceVo findMemberStoreBalanceByDeviceNoAndMemberId(MemberStoreBalanceDto memberStoreBalanceDto);

    void updateOrderRecord(Order order);

    MemberStoreBalanceDto minusBalance(int i, MemberStoreBalanceDto minus);
}
